package main

import "github.com/kataras/iris/v12"

func main() {
	app := iris.Default()

	//app.Party("/some")
	app.Get("user/{name}", func(ctx iris.Context) {
		name := ctx.Params().Get("name")
		ctx.Writef("Hello %s", name)
	})

	app.Get("/user/{name}/{action:path}", func(ctx iris.Context) {
		name := ctx.Params().Get("name")
		action := ctx.Params().Get("action")
		message := name + "is" + action
		ctx.WriteString(message)
	})

	app.Post("user/{name:string}/{action:path}", func(ctx iris.Context) {
		_ = ctx.GetCurrentRoute().Tmpl().Src == "/user/{name:string}/{action:path}"

	})
	app.Listen(":8080")
}
